package com.partner.boot.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@TableName("sys_role_permission")
@Data
public class RolePermission implements Serializable {

    private static final long serialVersionUID = 1L;

    // 主键
    @ApiModelProperty("主键")
    @Alias("主键")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("角色id")
    @Alias("角色id")
    private Integer roleId;

    @ApiModelProperty("菜单id")
    @Alias("菜单id")
    private Integer permissionId;

}
